home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / include / irit_soc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-05  |  1.6 KB  |  52 lines

  1. /*****************************************************************************
  2. *   Socket communication for IRIT.                         *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.1, June 1993.  *
  5. *****************************************************************************/
  6.  
  7. #ifndef IRIT_SOC_H
  8. #define IRIT_SOC_H
  9.  
  10. #include "iritprsr.h"
  11. #include "allocate.h"
  12.  
  13. #ifdef OS2GCC
  14. #define IRIT_PIPE_BUFFER_SIZE    1024
  15. #endif /* OS2GCC */
  16.  
  17. #if defined(__cplusplus) || defined(c_plusplus)
  18. extern "C" {
  19. #endif
  20.  
  21. /* Client and/or read routines. */
  22. int SocReadCharNonBlock(int Handler);
  23. char *SocReadLineNonBlock(int Handler);
  24. void SocEchoInput(int Handler, int EchoInput);
  25. IPObjectStruct *SocReadOneObject(int Handler);
  26. int SocClientCreateSocket(int BinaryIPC, int Read);
  27. void SocClientCloseSocket(int Handler);
  28.  
  29. /* Server and/or write routines. */
  30. void SocWriteChar(int Handler, char c);
  31. void SocWriteLine(int Handler, char *Line, int LineLen);
  32. void SocWriteOneObject(int Handler, IPObjectStruct *PObj);
  33. int SocServerCreateSocket(int BinaryIPC, int Read);
  34. int SocServerAcceptConnection(int Handler);
  35. int SocServerActive(int Handler);
  36. void SocServerCloseSocket(int Handler);
  37.  
  38. /* Communication with other processes. */
  39. int IritPrsrSrvrExecAndConnect(char *Program,
  40.                    int *PrgmInput,
  41.                    int *PrgmOutput,
  42.                    int IsBinary);
  43. int IritPrsrSrvrKillAndDisConnect(int Kill, int PrgmInput, int PrgmOutput);
  44. int IritPrsrClntAcceptConnect(int *PrgmInput, int *PrgmOutput);
  45. int IritPrsrClntCloseConnect(int PrgmInput, int PrgmOutput);
  46.  
  47. #if defined(__cplusplus) || defined(c_plusplus)
  48. }
  49. #endif
  50.  
  51. #endif /* IRIT_SOC_H */
  52.